package com.hillky.springboot.service;

import com.github.pagehelper.PageInfo;
import com.hillky.springboot.controller.dto.LoginDTO;
import com.hillky.springboot.controller.request.BaseRequest;
import com.hillky.springboot.controller.request.LoginRequest;
import com.hillky.springboot.controller.request.PassRequest;
import com.hillky.springboot.entity.Admin;

import java.util.List;


public interface AdminService {


    List<Admin> list();

    PageInfo<Admin> page(BaseRequest baseRequest);

    void save(Admin Admin);

    Admin getById(Integer id);

    void update(Admin Admin);

    void deleteById(Integer id);

    LoginDTO login(LoginRequest loginRequest);

    void changePassword(PassRequest passRequest);
}
